home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / gcl-1.000 / gcl-1 / gcl-1.0 / mp / makefile < prev    next >
Encoding:
Makefile  |  1994-05-09  |  2.4 KB  |  118 lines

  1. AR = ar qc
  2. MPDIR=.
  3. RANLIB=ranlib
  4. # if you are using gcc for the main link you probably dont need this:
  5. GNULIB1= ${MPDIR}/gnulib1.o
  6. NATIVE_CC=cc
  7.  
  8. # default mp files (overridden by machine.defs)
  9. MPFILES= $(MPDIR)/mpi.o $(MPDIR)/mp2.o  $(MPDIR)/libmport.a
  10.  
  11. # begin makedefs
  12. GCLDIR=/d11/wfs/newakcl
  13. SHELL=/bin/sh
  14. MACHINE=sun4
  15.  
  16. LBINDIR=/usr/local/bin
  17. OFLAG    =  -O
  18. LIBS    = -lm 
  19.  
  20. #include "sparc.h"
  21.  
  22. # the commercial (for money) C compiler has never been able
  23. # to compile akcl/gcl correctly.  Perhaps it does not like the idea
  24. # that this is free software.   However the standard C compiler is ok.
  25.  
  26. CC = cc  -DVOL=  -I$(GCLDIR)/o -Bstatic -temp=. -pipe
  27. CC = cc  -DVOL=  -I$(GCLDIR)/o -Bstatic  -pipe
  28. ODIR_DEBUG=-O4
  29.  
  30. #gcc 2.1 and 2.2 compile gcl correctly as far as I have been able to determine.
  31. #gcc 2.3.3 does not compile gcl correctly
  32. # gcc 2.5.7 is correct as far as I can tell
  33. #CC = gcc -I${GCLDIR}/o -static -DVOL=volatile -W 
  34.  
  35. AS=as -P
  36.  
  37. CFLAGS    = -c $(DEFS)  -I../h
  38.  
  39. MAIN    = ../o/main.o
  40.  
  41. MPFILES=$(MPDIR)/mpi-sparc.o $(MPDIR)/sparcdivul3.o $(MPDIR)/libmport.a
  42. #MPFILES=${MPDIR}/mpi.o ${MPDIR}/libmport.a
  43.  
  44. RSYM    = rsym
  45. SFASL    = $(ODIR)/sfasl.o
  46.  
  47. # This function will be run before dumping.
  48. # When using SFASL it is good to have (si::build-symbol-table)
  49. INITFORM=(si::build-symbol-table)
  50.  
  51.  
  52.  
  53. # Use symbolic links
  54. SYMB=-s
  55. # the  make to use for saved_kcp the profiler.
  56. KCP=kcp-sun
  57.  
  58. NULLFILE = ../h/secondary_sun_magic
  59.  
  60. # end makedefs
  61.  
  62.  
  63. OBJS= mp_divul3.o  mp_bfffo.o mp_mulul3.o mp2.o mp_dblrsl3.o mp_dblrul3.o ${GNULIB1}
  64.  
  65. all:
  66.     make all1 "MPFILES=$(MPFILES)"
  67.  
  68. all1: ${MPFILES}
  69.  
  70. $(MPDIR)/libmport.a: $(OBJS)
  71.     rm -f libmport.a
  72.     $(AR) libmport.a ${OBJS}
  73.     ${RANLIB} libmport.a
  74.  
  75. .s.o:
  76.     $(AS) $*.s -o $*.o
  77.  
  78. .c.o:
  79.     $(CC)  -c $(OFLAG) -I../h -I. $(CFLAGS) $(ODIR_DEBUG) $*.c
  80.  
  81. mpi-bsd68k.s: mpi.c
  82.     gcc -S  -I../h -O mpi.c -o mpi-bsd68k.s
  83.  
  84. mpi-sparc.s: mpi.c
  85.     gcc -S -I../h -O mpi.c -o mpi-sparc.s
  86.  
  87. mpi-sol-sparc.s: mpi.c
  88.     gcc -S -I../h -O mpi.c -o mpi-sol-sparc.s
  89.  
  90. ${MPDIR}/mpi-386.o: ${MPDIR}/mpi-386.s
  91.     $(AS) $*.s -o $*.o
  92.  
  93. ${MPDIR}/mpi-386.s: mpi.c
  94.     gcc -S -I../h -O mpi.c -o mpi-386.s
  95.  
  96. ${MPDIR}/mpi-gcc.o: mpi.c
  97.     gcc -c -O -I../h mpi.c -o mpi-gcc.o
  98.  
  99. ${MPDIR}/gnulib1.o:
  100.     ${NATIVE_CC} -c -O gnulib1.c
  101.  
  102. clean:
  103.     rm *.o *.a
  104.  
  105. make.defs:
  106.     (cd .. ; for v in h/*.defs; do echo $$v: ; fgrep MPFILES $$v ; done ; true) > make.defs
  107.  
  108.  
  109. tar:
  110.     (cd .. ; ls mp/*.c mp/*.s h/*.h h/*.defs mp/makefile mp/make.defs)  | sed -e '/foo/d' > tmpx
  111.     (cd .. ; tar cvf - `cat mp/tmpx`) | compress -c > ${HOME}/tmp/mp.tar.Z
  112.     rm -f tmpx
  113.  
  114.  
  115.  
  116.  
  117.  
  118.